import request from "@/api/request";
import { GET_USER_FRIENDS_API , GET_CURRENT_USER_GROUPS_API } from "@/api/api_constant";

export const getUserFriends = async (_id) => {
     return await request.get(GET_USER_FRIENDS_API,{
         params:{
             _id
         }
     }) 
}

export const getUserGroups = async (_id) => {
    return await request.get(GET_CURRENT_USER_GROUPS_API,{
        params:{
            _id
        }
    })
}